%% =========================== [function description] =============================
% predecessor file ------ none
% function function ------m n-dimensional vectors with reordering to matrix
% input variables ------nVector - n-dimensional vectors
% m------- number of vector arrangements
% output variable ------mnMat --- matrix with rearrangement
%% =========================== [body of function] =============================
function mnMat=m_n(nVector,m)
 n=length(nVector);
 mnMat=nVector;
for i=2:m
    Mat=zeros(n^i,i);
    for j=1:n^(i-1)
        Mat((n*j-n+1:n*j),:)=[ones(n,1)*mnMat(j,:),nVector];
    end
    mnMat=Mat;
end
    
    
